package com.stek.sanglhlib;

import android.support.v7.app.ActionBarActivity;

import com.google.android.gms.ads.AdView;

public class AdmodActivity extends ActionBarActivity {
	/** The view to show the ad. */
	protected AdView adView;

	@Override
	protected void onResume() {
		super.onResume();
		if (adView != null) {
			adView.resume();
		}
	}

	@Override
	protected void onPause() {
		if (adView != null) {
			adView.pause();
		}
		super.onPause();
	}

	/** Called before the activity is destroyed. */
	@Override
	protected void onDestroy() {
		if (adView != null) {
			// Destroy the AdView.
			adView.destroy();
		}
		super.onDestroy();
	}
}
